export const rules = {
    fileName: [
        { required: true, message: '请输入文件名称', trigger: 'blur' },
        { min: 2, max: 20, message: '文件名称长度2-20位', trigger: 'blur' },
        {
            pattern: new RegExp(/^((?!\+|\.|\\|\/|:|\*|\?|\!|<|>|\||'|%|@|#|&|\$|\^|&|\*).){1,50}$/),
            message: '名称不允许包含特殊字符',
            trigger: 'blur'
        }
    ],
    fileType: [
        { required: true, message: '请选择文件类型', trigger: 'change' }
    ],
    fileUrl: [
        { required: true, message: '请选择文件', trigger: 'change' }
    ],
    deptId: [
        { required: true, message: '请选择所属部门', trigger: 'change' }
    ],
}